//MyButton.java
package observer.javamodel;

import java.util.Date;
import java.util.Observable;

/**
 *@author:youtubezou
 *@version:2012-7-30
 */
public class CloseButton extends Observable {
	public void click(){
		ButtonEvent btnEvent = new ButtonEvent(new Date(), "click close button");
		setChanged();
		this.notifyObservers(btnEvent);
	}
	
	public void release(){
		clearChanged();
	}
}
